package main

import (
	//"Client/myGet"
	"Client/myGet"
	"Client/myPost"
)

func main() {
	//发起get请求
	param := map[string]string{"name": "jack", "age": "18"}
	myGet.SendGetRequest("http://127.0.0.1:8000/getExample", param)

	//发起post请求
	// 如果是表单数据
	//contentType := "application/x-www-form-urlencoded"
	//data := "name=jack子&age=18"
	myPost.SendPostRequest("http://127.0.0.1:8000/postExample", "application/json", `{"name":"jack","age":18}`)

}
